﻿using CleanArchitecture.Infrastructure.Interfaces;

namespace CleanArchitecture.Infrastructure.Entities.Settings
{
    /// <summary>
    /// News settings
    /// </summary>
    public class MediaSettings : ISettings
    {
        /// <summary>
        /// Picture size of Upload Thumb pictures
        /// 上传缩略图的图片长宽最大尺寸 系统设定默认大小为245x245
        /// </summary>
        public int UploadThumbPictureMaxSize { get; set; }

        /// <summary>
        /// Maximum allowed picture size. If a larger picture is uploaded, then it'll be resized
        /// </summary>
        public int MaximumImageSize { get; set; }

        /// <summary>
        /// Gets or sets a default quality used for image generation
        /// </summary>
        public int DefaultImageQuality { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether single (/content/images/thumbs/) or multiple (/content/images/thumbs/001/ and /content/images/thumbs/002/) directories will used for picture thumbs
        /// </summary>
        public bool MultipleThumbDirectories { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether need to use absolute pictures path
        /// </summary>
        public string DefaultImageRootPath { get; set; }

        /// <summary>
        /// 允许上传的所有图片的最大大小（容量） 默认 5M， 5242880
        /// </summary>
        public int FileMaximumSizeBytes { get; set; }

        /// <summary>
        /// 图片使用DB存储或者是FileSystem存储 
        /// true : storeindb
        /// false: store to file directory
        /// </summary>
        public bool? StoreInDb { get; set; }
        public string FileStroeRootPath { get; set; }
        /// <summary>
        /// 上传文件是否保留文件原名，否则由系统自动生成新名
        /// </summary>
        public bool RemainFileName { get; set; }



    }
}
